package com.example.coffeejava.utils;

import cn.hutool.core.util.StrUtil;

public class RegexUtils {
    public static Boolean isphonevalud(String phone){
return mismatch(phone,RegexPatterns.PHONE_REGEX);
    }
    private static boolean mismatch(String str,String regex){
        if(StrUtil.isBlank(str)){
            return true;
        }
        return !str.matches(regex);
    }
}
